@extends('layouts.template')

@section('title', '个人中心')

@section('header')
@endsection

@section('content')
<section>

    <article class="home_my">
        <img src="{{$master->head_img_url}}">
        <div>
            <h3>{{$master->real_name}}</h3>
            <p>所在地:{{$master->city_name}}</p>
        </div>
        <a href="{{url('master/detail')}}">个人资料></a>
        {{--<a href="{{url('logout')}}" style="top:80%;">重新登录></a>--}}

    </article>
    <article class="home_poto3 overflow_h">
        <h2>我的信誉：
            @if ($stars)
                @while($stars--)
                    <span class="h_ico01"></span>
                @endwhile
            @else
                <strong style="color:red">0</strong>
            @endif
        </h2>
        <p><em>总接单:<i>{{$master->stat->order_count}}单</i></em><em>总评分:<i>{{$master->stat->avg_score}}分</i></em><em>好评率:<i>{{$master->stat->praise_rate}}%</i></em></p>
    </article>

    <article class="home_table">
        <a onclick="alert('功能暂未开通')"><img src="{{asset('images/tab_1.png')}}"> 我的展位</a>
        <a href="{{url('wallet/assurefund')}}"><img src="{{asset('images/ico09.png')}}"> 诚信保证金<span> ({{$master->wallet->assure_fund ? '已缴纳'.intval($master->wallet->assure_fund).'元' : '暂未缴纳'}})</span></a>
        <a href="{{url('wallet')}}" class="nobar"><img src="{{asset('images/tab_3.png')}}"> 我的钱包</a>
        <a onclick="alert('功能暂未开通')"><img src="{{asset('images/tab_4.png')}}"> 邀请赚提成</a>
        <a href="{{url('master/evaluate')}}"><img src="{{asset('images/tab_5.png')}}"> 评价回复</a>
        <a class="nobar" onclick="alert('功能暂未开通')"><img src="{{asset('images/tab_9.png')}}"> 积分商城</a>
        <a href="{{url('master/complain')}}"><img src="{{asset('images/tab_7.png')}}"> 投诉记录</a>
        <a href="{{url('refund')}}"><img src="{{asset('images/tab_8.png')}}"> 退款管理</a>

    </article>
</section >
@endsection

@section('footer')
@component('layouts.footer',['option'=>'master'])
@endcomponent
@endsection